class MyTheme {
  bool lightMode;
  MyTheme(this.lightMode);

  GlobalColor getGlobalColor(){return lightMode?_lightColor:_darkColor;}
  GlobalDimen getGlobalDimen(){return _dimen;}

  static GlobalColor _lightColor =
      new GlobalColor(0xFF1E90FF, 0xFF00BFFF,0xFF778899, 0xFFEAF0F5,0xCCFFFFFF, 0xFFFFFFFF,0xFF888888);

  static GlobalColor _darkColor =
  new GlobalColor(0xFF000000, 0xFFFFD700,0xFF778899, 0xFFEAF0F5,0xCCFFFFFF, 0xFFCCCCCC,0xFF44444);

  static GlobalDimen _dimen = new GlobalDimen(18.0, 14.0);
}

class GlobalColor {
  int primaryColor; //主题颜色
  int secondColor; //次要颜色，渐变用
  int disableColor;//不可用颜色，灰色
  int backgroundColor; //背景色
  int transBgWhite;//登录背景色，透明白

  int textColorWithPrimary;
  int textColorCommon;

  GlobalColor(this.primaryColor, this.secondColor,this.disableColor, this.backgroundColor,
      this.transBgWhite,this.textColorWithPrimary,this.textColorCommon);
}

class GlobalDimen {
  double titleSize;
  double commonSize;

  GlobalDimen(this.titleSize, this.commonSize);
}
